Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Ensure the shape of input patches is compatible with model constraints#682

Merged
fepegar merged 10 commits into
microsoft:mainfrom
fepegar:ensure-patches-shape-multiple
Mar 10, 2022
Merged

Ensure the shape of input patches is compatible with model constraints#682
fepegar merged 10 commits into
microsoft:mainfrom
fepegar:ensure-patches-shape-multiple

Conversation

@fepegar

@fepegar fepegar commented Mar 3, 2022

Copy link
Copy Markdown
Contributor

This change uses TorchIO's EnsureShapeMultiple to ensure that the inputs are a multiple of certain number which is specified in the model size constraints.

@fepegar fepegar marked this pull request as draft March 3, 2022 14:54
Update CHANGELOG

Fix transform being passed to itself

Add correct changes to inference file
@fepegar fepegar force-pushed the ensure-patches-shape-multiple branch from 85bcecd to fade6c3 Compare March 3, 2022 15:03
@fepegar fepegar marked this pull request as ready for review March 3, 2022 15:49
@fepegar fepegar marked this pull request as draft March 3, 2022 17:05
@fepegar fepegar marked this pull request as ready for review March 7, 2022 11:33
@fepegar fepegar requested review from Shruthi42 and ant0nsc and removed request for ant0nsc March 7, 2022 11:33
Shruthi42
Shruthi42 previously approved these changes Mar 8, 2022


def test_inference_on_too_small_image() -> None:
"""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete a test?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because images will never be too small after merging

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other PR does not have tests. Is it not possible to have a test to demonstrate that this is correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fepegar fepegar enabled auto-merge (squash) March 10, 2022 16:32
@fepegar fepegar merged commit d929ccb into microsoft:main Mar 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants